package priv.cwr.actuator.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import priv.cwr.actuator.service.ActuatorService;

/**
 * User: R
 * Date: 2018/9/14
 * Time: 15:54
 * Created with IntelliJ IDEA.
 */
@RequestMapping("/test")
@RestController
public class ActuatorController {
    private final ActuatorService actuatorService;

    public ActuatorController(ActuatorService actuatorService) {
        this.actuatorService = actuatorService;
    }

    @GetMapping("/getMsg")
    public String getMsg() {
        return this.actuatorService.getMes();
    }
}
